package com.itheima.d4_static_attention;

public class Student {
    static String x ="静态变量";
    String y="实例变量";

    public static void s1(){
        System.out.println(Student.x.toString());
        System.out.println(x);

      //  System.out.println(y);
        System.out.println("静态方法");
        Student student=new Student();
        System.out.println(student.y.toString());
    }

    public void s2(){
        Student student=new Student();
        System.out.println(student.y.toString());
        System.out.println("非静态方法");
        System.out.println(x);
    }
}
